
<!DOCTYPE html>
<html>
<head>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>

<link rel="stylesheet" type="text/css" href="theme/layui/css/layui.css">
<link rel="stylesheet" type="text/css" href="theme/default/css/common.css">
<script src="theme/default/Js/Common.js"></script>
<script src="theme/default/Js/jquery-3.0.0.min.js"></script>
<script src="theme/default/js/artDialog.js?skin=blue"></script>
<link rel="stylesheet" type="text/css" href="/include/webupload/webuploader.css">
<script src="include/webupload/webuploader.min.js"></script> 
<script src="include/webupload/uploads.js"></script>
<link rel='stylesheet' type="text/css" href='theme/desktop/css/font-awesome.min.css'>

<style>
.MenuboxS ul li{min-width: 90px !important;}
.cssin li{ border-bottom:1px solid #E9EAEC;}
</style>
</head>
<body>

<script>
<!-- 新增客户必填项提示
function CheckInput()
{
	if (1=="1"){if(document.all.Company.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '客户名称不能为空!'});document.all.Company.focus();return false;}}
	if (1=="1"){if(document.all.Type.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '客户类型不能为空!'});document.all.Type.focus();return false;}}
	if (0=="1"){if(document.all.Trade.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '商品大类不能为空!'});document.all.Trade.focus();return false;}}
	if (0=="1"){if(document.all.Area.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '所在地区不能为空'});document.all.Area.focus();return false;}}
	if (0=="1"){if(document.all.address.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '详细地址不能为空!'});document.all.address.focus();return false;}}	
	if (0=="1"){if(document.all.Start.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '客户级别不能为空!'});document.all.Start.focus();return false;}}
	if (0=="1"){if(document.all.Source.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '客户来源不能为空!'});document.all.Source.focus();return false;}}
	if (0=="1"){if(document.all.Homepage.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '网址不能为空!'});document.all.Homepage.focus();return false;}}
	if (0=="1"){if(document.all.Hangye.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '所属行业不能为空!'});document.all.Hangye.focus();return false;}}
	if (1=="1"){if(document.all.Linkman.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '联系人不能为空!'});document.all.Linkman.focus();return false;}}
	if (1=="1"){if(document.all.Zhiwei.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '职位不能为空!'});document.all.Zhiwei.focus();return false;}}
	if (0=="1"){if(document.all.Mobile.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '手机号码不能为空!'});document.all.Mobile.focus();return false;}}
	if (0=="1"){if(document.all.cSR.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '生日不能为空!'});document.all.cSR.focus();return false;}}
	if (0=="1"){if(document.all.QQ.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: 'QQ不能为空!'});document.all.QQ.focus();return false;}}
	if (0=="1"){if(document.all.Email.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '电子邮箱不能为空!'});document.all.Email.focus();return false;}}
	if (0=="1"){if(document.all.Beizhu.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '备注不能为空!'});document.all.Beizhu.focus();return false;}}

}
-->
</script>

<!----------------------------------------新增客户开始----------------------------------------> 
<!----------------------------------------新增客户开始----------------------------------------> 
<div class="cssout">
  <form class="layui-form" name="add" action="?action=Kehu&stype=saveadd&LaiLu=" method="post" onSubmit="return CheckInput();">
    <div class="cssin">
      <ul>
        <li class="w100 bg">
          <dd class="isin"><B>基本信息</B></dd>
        </li>
        <li class="w10 bg tr">
          <dd class="isin">
            
            <font color="#FF0000">*</font>
            客户名称</dd>
        </li>
        <li class="w90">
          <dd class="isin">
            <input type="text" class="bor int" name="Company" id="Company" size="50" maxlength="50" autocomplete="off" onKeyUp="checkcompany(this.value,666888);" onChange="checkcompany(this.value,666888);">
            
            <span id="check1"> <span class="info_warn help01">客户识别信息</span> </span>
            
            <input type="hidden" class="BSPD" id="BSCompany" name="BSCompany" value="0">
          </dd>
        </li>
        
        
        <li class="w10 bg tr">
          <dd class="isin">
            
            <font color="#FF0000">*</font>
            联系人</dd>
        </li>
        <li class="w40">
          <dd class="isin">
            <input name="Linkman" type="text" class="bor int" id="Linkman" size="25" onKeyUp="checklinkman(this.value,666888);" onChange="checklinkman(this.value,666888);">
            
            <span id="check2"><span class="info_warn help01">客户识别信息</span></span>
            
            <input type="hidden" class="BSPD" id="BSLinkman" name="BSLinkman" value="0">
          </dd>
        </li>
        
        <li class="w10 bg tr">
          <dd class="isin">
            
            <font color="#FF0000">*</font>
            职位</dd>
        </li>
        <li class="w40">
          <dd class="isin">
            <select name="Zhiwei" id="Select_Zhiwei"><option value="">请选择</option><option value="负责人">负责人</option><option value="决策人">决策人</option></select>
            <a class="btn1 btnxinz" onclick='Select_Zhiwei("set_select_add.asp?action=select_add&stype=add&otype=Select_Zhiwei&LaiLu=")'><i class="fadd fa-plus-square"></i>新增</a>
            
          </dd>
        </li>
        
        <li class="w10 bg cl tr">
          <dd class="isin">
            手机号码</dd>
        </li>
        <li class="w40">
          <dd class="isin">
            <input name="Mobile" type="text" class="bor int" id="Mobile" size="25" onKeyUp="checkmobile(this.value,666888,1);" onChange="checkmobile(this.value,666888,1);">
            
            <span id="check3"><span class="info_warn help01">客户识别信息</span></span>
            
            <input type="hidden" class="BSPD" id="BSMobile" name="BSMobile" value="0">
            <span class="info_help vtip" title="管理员可以在【系统设置】修改手机号识别方式">&nbsp;</span>
            </dd>
        </li>
        
        <li class="w10 bg tr">
          <dd class="isin">
            QQ </dd>
        </li>
        <li class="w40">
          <dd class="isin">
            <input name="QQ" type="text" class="bor int" id="QQ" size="25">
          </dd>
        </li>
        
        <li class="w10 bg tr">
          <dd class="isin">
            电子邮箱 </dd>
        </li>
        <li class="w40">
          <dd class="isin">
            <input name="Email" type="text" class="bor int" id="Email" size="25">
            
            
            <!--<a class="btn1 btnupload" title="生成QQ邮箱" onclick='MakeQQMail()'><i class="fadd fa-envelope-square"></i>生成QQ邮箱</a> 
            <script> 	
function MakeQQMail() { 
var s = document.getElementById('QQ').value; 
document.all("Email").value = s+"@qq.com"; 
} 
</script>--> 
</dd>
        </li>
        
        
        <li class="w100 bg">
          <dd class="isin"><B>附加信息</B></dd>
        </li>
        
        
        
        
        
        <li class="w10 bg tr">
          <dd class="isin">
            
            <font color="#FF0000">*</font>
            客户类型</dd>
        </li>
        <li class="w40">
          <dd class="isin">
            <select name="Type" id="Select_Type"><option value="">请选择</option><option value="渠道部转交">渠道部转交</option><option value="企划部跟进">企划部跟进</option><option value="市场部跟进">市场部跟进</option></select>
            <a class="btn1 btnxinz" onclick='Select_Type("set_select_add.asp?action=select_add&stype=add&otype=Select_Type&LaiLu=")'><i class="fadd fa-plus-square"></i>新增</a>
            
          </dd>
        </li>
        
        <li class="w10 bg tr">
          <dd class="isin">
            商品大类</dd>
        </li>
        <li class="w40">
          <dd class="isin">
            <select name="Trade" onChange="getTrade(this.options[this.selectedIndex].id);">
              <option value="">请选择</option>
              
              <option value="产品大分类" id="1">产品大分类</option>
              
            </select>
            <span id="Stradediv"  style="margin-left:10px;padding:0;">
            <select name="Strades">
              <option value="">未选择大类</option>
            </select>
            </span>
            <input name="Strade" type="hidden" id="Strade">
            
            <a class="btn1 btnxinz open-app" data-width="600" data-height="450" title="设置产品分类" href="goodssave.asp?action=Proclass&stype=ClassList&LaiLu="><i class="fadd fa-gear"></i>设置</a>
            
          </dd>
        </li>
        
      
        
<div class="zidonggaodu fujian">
        <li class="w10 cl bg tr" style="border-top:none;">
          <dd class="isin">
            附件</dd>
        </li>
        <li class="w90" style="border-top:none;">
          <dd class="isin">
          
<span id="fujian1"> </span>
<script>
//定义一个上传
var upName1 = $("#fujian1").powerWebUpload(
{ 
	auto: true,//上传后是否自动上传
	fileNumLimit:10,//允许上传个数
	accept: {
	   title: '上传附件',
	   extensions: 'gif,jpg,png,bmp,doc,docx,xls,xlsx,ppt,pdf,rar,zip,txt',//允许类型 原始：'gif,jpg,jpeg,bmp,png'
	   mimeTypes: '*'//类型 原始：'image/*'
	}//限制的配置信息
});
//绑定上传完成事件 file 参数中有 原始名称 大小 后缀 类型等等参数；percentage是服务返回的参数 有信息 和图片地址
    upName1.on('uploadSuccess', function (file, percentage) {
	$("#fujianlist").val(percentage.data.src);
	
});
</script>
          </dd>
        </li>
        <div class="clear"></div>
</div>
        
        
        
        <li class="w10 duohang cl bg tr">
          <dd class="isin">
            备注</dd>
        </li>
        <li class="w90 duohang">
          <dd class="isin">
            <textarea name="Beizhu" rows="4" class="bor int" id="Beizhu" style="height:65px;width:98%;"></textarea>
          </dd>
        </li>
        
<div class="clear"></div>
      </ul>
    </div>
    <div class="h50b"></div>
    <div class="fixed_bg_B">
      <input name="User" type="hidden" value="超级管理员">
      <input name="lx" type="hidden" value="">
      <input type="submit" id="submit" name="Submit" class="btn2 btnbaoc" value="保存">
      <input name="Back" type="button" id="Back" class="btn2 btnguanb" value="关闭" onClick="art.dialog.close();guanbi();">
      
 

      <span class="set_zdy">
      
      <script>function Select_Type(Dourl) {$.dialog.open(Dourl, {title: '新增选项值', width: 500, height: 400,fixed: true}); };</script> 
      <script>function Select_Star(Dourl) {$.dialog.open(Dourl, {title: '新增选项值', width: 500, height: 400,fixed: true}); };</script> 
      <script>function Select_Source(Dourl) {$.dialog.open(Dourl, {title: '新增选项值', width: 500, height: 400,fixed: true}); };</script> 
      <script>function Select_Hangye(Dourl) {$.dialog.open(Dourl, {title: '新增选项值', width: 500, height: 400,fixed: true}); };</script> 
      <script>function Select_Zhiwei(Dourl) {$.dialog.open(Dourl, {title: '新增选项值', width: 500, height: 400,fixed: true}); };</script>
      
      </span>
      
    </div>
  </form>
</div>

<script src="theme/default/WdatePicker.js"></script> 
<script src="theme/layui/layui.js"></script> 
<script src="theme/desktop/js/common.js"></script>

<script>
/*弹出窗口封装代码*/
$(".open-app").on("click",function(){
	var width = $(this).data("width")?$(this).data("width"):900,//获得宽度
	height = $(this).data("height")?$(this).data("height"):400//获得高度
	url = $(this).attr("href")//获得打开URL
	title = $(this).attr("title");//获得标题	
	$.dialog.open(url, {title: title, width:width,height:height, fixed: true});
	return false;	
})
</script>

</body>
</html>
